import http from "@/api";
export function fetchUserList(data) {
  return http.post("/admin/user/list", data);
}
export function addUser(data) {
  return http.post("/admin/user/add", data);
}
export function fetchResetPwd(data) {
  return http.post("/admin/user/reset/password", data);
}
export function fetchChangePwd(data) {
  return http.post("/current/user/update/password", data);
}
export function deleteUser(data) {
  return http.post(
    "/admin/user/delete",
    {},
    {
      params: data,
    },
  );
}

export function fetchUserDetail() {
  return http.get("/current/user/detail");
}

export function fetchChangeUserStatus(data = {}) {
  return http.post("/admin/user/update/status", data);
}
